

package com.hazelcast.spi.impl.tenantcontrol;

import com.hazelcast.spi.tenantcontrol.TenantControl;
import com.hazelcast.spi.tenantcontrol.TenantControlFactory;

import static com.hazelcast.spi.tenantcontrol.TenantControl.NOOP_TENANT_CONTROL;

/**
 * Default implementation of {@link TenantControlFactory}, always returns a no-op tenant control
 */
public class NoopTenantControlFactory implements TenantControlFactory {

    @Override
    public TenantControl saveCurrentTenant() {
        return NOOP_TENANT_CONTROL;
    }

    @Override
    public boolean isClassesAlwaysAvailable() {
        return true;
    }
}
